package com.nancy.controller;

import com.nancy.service.OrderConsumer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    private OrderConsumer orderConsumer ;


    @RequestMapping("sayHello")
    public String sayHello(@RequestParam("name") String name){
        return orderConsumer.sayHello(name) ;
    }

}
